#include "SrpcController.h"

SrpcController::SrpcController() {
  m_failed = false;
  m_error_text = "";
}

void SrpcController::Reset() {
  m_failed = false;
  m_error_text = "";
}

bool SrpcController::Failed() const { return m_failed; }

std::string SrpcController::ErrorText() const { return m_error_text; }

void SrpcController::SetFailed(const std::string &reason) {
  m_failed = true;
  m_error_text = reason;
}

void SrpcController::StartCancel() {}

bool SrpcController::IsCanceled() const { return false; }

void SrpcController::NotifyOnCancel(google::protobuf::Closure *callback) {}